package com.hwz.mapper;

import com.hwz.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressBookMapper {
    void insert(AddressBook addressBook);

    List<AddressBook> getByUserId(Long userId);

    AddressBook getByUserIdAndDefault(Long userId);

    void updateById(AddressBook addressBook);

    void deleteById(Long id);

    AddressBook getById(Long id);

    void updateIsDefaultByUserId(AddressBook addressBook);
}
